<?php
//配置文件
return [
    'jwt_auth_key' => '09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d123',  //token加密字符串
    'token_leeway_time' => 7200*48, //token有效时间 秒数
    'ignore_urls' => [      //路由白名单
        '/api/weapp/index/login',
        '/api/weapp/index/loginByCode',
        '/api/weapp/index/test',
    ],
    'upload_setting' => [       //上传配置
        'file_types' => [
            'image' => [
                'upload_max_filesize' => '10240',//单位KB
                'extensions' => 'jpg,jpeg,png,gif,bmp4,svg'
            ],
            'video' => [
                'upload_max_filesize' => '102400',
                'extensions' => 'mp4,avi,wmv,rm,rmvb,mkv'
            ],
            'audio' => [
                'upload_max_filesize' => '10240',
                'extensions' => 'mp3,wma,wav'
            ],
            'file' => [
                'upload_max_filesize' => '102400',
                'extensions' => 'txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar'
            ]
        ],
        'chunk_size' => 512,//单位KB
        'max_files' => 20 //最大同时上传文件数
    ],

];
